/*
 * @Author: 陈德基
 * @Date: 2021-11-15 15:45:08
 * @LastEditTime: 2021-11-28 11:21:55
 * @Description: 
 * @FilePath: \copy_gsy_github_app_flutter\lib\page\main\state\state.dart
 * 联系方式：
 * wx: melody_2009
 * qq: 7815171323 
 */
import 'package:copy_gsy_github_app_flutter/common/model/Event.dart';
import 'package:copy_gsy_github_app_flutter/common/model/User.dart';
import 'package:get/get.dart';

class MainState {
  var _indexViewPagePosition = 0.obs;
  updatePagePosition(int position) {
    this._indexViewPagePosition.value = position;
  }

  User? _globalUser;
  get user => this._globalUser;
  set user(value) {
    this._globalUser = value;

    /// TODO 后续更新用户头像之类的，在这里更新
  }

  int get position => this._indexViewPagePosition.value;
  var dPageLoading = false.obs;
  var dynamics = <Event>[].obs;

  var trends = [].obs;
}
